<template>
  <div>
    <el-button type="primary" @click="login">登录</el-button>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    login() {
      window.localStorage.setItem("token", "123456");
      this.$router.replace("/index");
    },
  },
};
</script>

<style lang="scss" scoped></style>
